import React from "react"

const Component = (props)=>{
  const handlePropsClick = ()=>{
    props.handleNum(100)
  }
  return (
    <>  
      <div>this is props2</div>
      <h2 onClick={handlePropsClick}>这是父组件中传递的值</h2>
    </>
  )

}

export  default Component
